<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFourDoctorTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('four_doctor', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('医生姓名');
            $table->string('avatar')->default('')->comment('医生头像');
            $table->tinyInteger('campus_id')->comment('院区');
            $table->tinyInteger('title_id')->comment('职称');
            $table->tinyInteger('department_id')->comment('科室');
            $table->string('label')->default('')->comment('标签');
            $table->string('desc')->default('')->comment('医生简介');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('four_doctor');
    }
}
